package com.weilai.service;

import com.weilai.domain.Likes;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LikesService {

    //根据用户id查询点赞的文章...
    public List<Likes> getLikesByUserId(int userId);

    // 按 userid 删除点赞信息
    public void deleteUserById(int userId);

//    // 检查用户是否已点赞
//    @Select("select count(*) from likes where user_id = #{userId} and post_id = #{postId} and is_deleted = 0")
//    int countUserLiked(int userId, int postId);
}
